package cn.superchart.common.base;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author LG
 * @date 2022/9/14
 */
@Data
public  class BasePage  extends BaseParam {

    private Long current= 1L;

    private Long pageSize= 20L;

    private List<String> desc = new ArrayList<>();

    private List<String> asc = new ArrayList<>();

    public  <T> Page<T> defaultPage() {
        return new Page<>(current, pageSize);
    }

}
